package cn.dinghu.pro.service;

import cn.dinghu.pro.common.ResultData;
import cn.dinghu.pro.entity.Nurse;
import cn.dinghu.pro.entity.Orders;
import cn.dinghu.pro.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 护工表 服务类
 * </p>
 *
 * @author dinghu
 * @since 2025-10-14
 */
public interface INurseService extends IService<Nurse> {
    int edit(Nurse nurse);

    int add(Nurse nurse);

    ResultData updateStatus(int status, int id);

    /**
     * 登录功能
     * @param username,password
     * @return
     */
    Nurse login(String username, String password);

    // 获取列表
    public List<Orders> getAppInfoList(String realName, String status,Integer pageNo, Integer pageSize);
    // 获取总条数
    public int getAppInfoCount(String realName, String status);
    // 分页
    public ResultData getPageInfo(String realName, String status,Integer pageNo,Integer pageSize);

    public int getCountPj(Integer good, Integer bad,  Integer goodbad,  Integer nuserId);
}
